package com.outlook.domain;

import com.outlook.annotation.edit.EditExclude;
import com.outlook.annotation.edit.EditId;
import com.outlook.annotation.edit.EditImage;
import com.outlook.annotation.edit.EditNum;
import com.outlook.annotation.edit.EditSelect;
import com.outlook.annotation.edit.EditString;
import com.outlook.annotation.edit.EditTitle;

/**
 * 
 * @author watson.wu
 *
 */
public class User {

	@EditId
	private long id;
	@EditTitle
	private String name;
	@EditExclude
	private String password;
	@EditSelect(type="choice", range="male:0;famle:1")
	private int sex;
	@EditNum(max=120)
	private int age;
	@EditImage(size=60)
	private String photo;
	@EditString(max=20, size=80)
	private String address;
	@EditString(mix=11, max=11)
	private String telphone;
	@EditString(type="text",size=500)
	private String description;
	@EditString(type="rich")
	private String article;

	public User() {
		super();
	}

	public User(long id, String name, String password, int sex, int age,
			String photo, String address, String telphone, String description,
			String article) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.sex = sex;
		this.age = age;
		this.photo = photo;
		this.address = address;
		this.telphone = telphone;
		this.description = description;
		this.article = article;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getArticle() {
		return article;
	}

	public void setArticle(String article) {
		this.article = article;
	}

}
